package com.amusement.threePoker.control
{
	import com.amusement.threePoker.model.RoomMenu;
	import com.amusement.threePoker.view.GameHall;
	
	import flash.events.MouseEvent;

	public class GameHallControl
	{
		public static var instance:GameHallControl;
		private var gameHall:GameHall;
		public function GameHallControl(gameHall:GameHall)
		{
			this.gameHall = gameHall;
			instance = this;
		}
		
		public function init(arr:Array):void{
			for(var i:int=0;i<arr.length;i++){
				var roomMenu:RoomMenu = new RoomMenu();
				roomMenu.roomMenuB.label = arr[i];
				this.gameHall.addElement(roomMenu);
				roomMenu.x = i*200;
			}
		}
	}
}